package com.wang.web3.bean;

import java.util.List;

/**
 * Created by zjf
 * on 2018/6/6
 */

public class MarketPropsBean {

    /**
     * code : 0
     * data : [{"categoryName":"背景","contract":"0xe40c0c56a658731cf0551265afa5a98a4e9bcaa8","id":2,"itemId":"84961673979219192422272677007668266635302908715900483176821283480634021680220","itemPic":"http://p6nuqct3n.bkt.clouddn.com/item_background_01.png","rarity":"普通","sellNum":"1000000000000000000","sellPrice":"3000000000000000","typeName":"实验室","userAddress":"0x106a4e2fa0864a864a7d3512852c3920c96d4680"}]
     * msg : 操作成功
     * pagination : {"pageIndex":1,"pageSize":20,"totalItems":1}
     */

    private String code;
    private String msg;
    private PaginationBean pagination;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public PaginationBean getPagination() {
        return pagination;
    }

    public void setPagination(PaginationBean pagination) {
        this.pagination = pagination;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class PaginationBean {
        /**
         * pageIndex : 1
         * pageSize : 20
         * totalItems : 1
         */

        private int pageIndex;
        private int pageSize;
        private int totalItems;

        public int getPageIndex() {
            return pageIndex;
        }

        public void setPageIndex(int pageIndex) {
            this.pageIndex = pageIndex;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalItems() {
            return totalItems;
        }

        public void setTotalItems(int totalItems) {
            this.totalItems = totalItems;
        }
    }

    public static class DataBean {
        /**
         * categoryName : 背景
         * contract : 0xe40c0c56a658731cf0551265afa5a98a4e9bcaa8
         * id : 2
         * itemId : 84961673979219192422272677007668266635302908715900483176821283480634021680220
         * itemPic : http://p6nuqct3n.bkt.clouddn.com/item_background_01.png
         * rarity : 普通
         * sellNum : 1000000000000000000
         * sellPrice : 3000000000000000
         * typeName : 实验室
         * userAddress : 0x106a4e2fa0864a864a7d3512852c3920c96d4680
         */

        private String categoryName;
        private String contract;
        private int id;
        private String itemId;
        private String itemPic;
        private String rarity;
        private String sellNum;
        private String sellPrice;
        private String typeName;
        private String userAddress;

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public String getContract() {
            return contract;
        }

        public void setContract(String contract) {
            this.contract = contract;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getItemId() {
            return itemId;
        }

        public void setItemId(String itemId) {
            this.itemId = itemId;
        }

        public String getItemPic() {
            return itemPic;
        }

        public void setItemPic(String itemPic) {
            this.itemPic = itemPic;
        }

        public String getRarity() {
            return rarity;
        }

        public void setRarity(String rarity) {
            this.rarity = rarity;
        }

        public String getSellNum() {
            return sellNum;
        }

        public void setSellNum(String sellNum) {
            this.sellNum = sellNum;
        }

        public String getSellPrice() {
            return sellPrice;
        }

        public void setSellPrice(String sellPrice) {
            this.sellPrice = sellPrice;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public String getUserAddress() {
            return userAddress;
        }

        public void setUserAddress(String userAddress) {
            this.userAddress = userAddress;
        }
    }
}
